package com.bluse.config;

import com.bluse.security.testFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

public class CustomerFilter {

    public FilterRegistrationBean registrationBean() {
        FilterRegistrationBean registrationBean = new FilterRegistrationBean();
//        registrationBean.setName("testFilter");
//        registrationBean.setFilter(new testFilter());
//        registrationBean.setOrder(1);
//        List<String> urls = new ArrayList<>();
//        urls.add("/*");
//        registrationBean.setUrlPatterns(urls);
        return registrationBean;
    }


}
